package com.itheima.clientAndService01;

public class IntegerClass {
    public static void main(String[] args) {
        Integer integer1 = new Integer(10);
        Integer integer2 = new Integer("10");
        System.out.println(integer1);
        System.out.println(integer2);

        System.out.println("-----------------------------");
        Integer integer3 = Integer.valueOf(10);
        Integer integer4 = Integer.valueOf("10");
        System.out.println(integer3);
        System.out.println(integer4);
        System.out.println("-----------------------------");

        String s1 = integer1 + "";
        String s2 = String.valueOf(integer1);
        System.out.println(s1 + 10);
        System.out.println(s2 + 20);
        System.out.println("-----------------------------");

        Integer integer5 = Integer.valueOf(s1);
        int a1 = integer5;
        System.out.println(a1 + 10);
        int a2 = Integer.parseInt(s1);
        System.out.println(a2 + 20);
    }
}
